Optimal. Leaf size=142 \[ \frac {7}{8} d^3 x \sqrt {d^2-e^2 x^2}+\frac {7 d^2 \left (d^2-e^2 x^2\right )^{3/2}}{12 e}+\frac {7 d (d-e x) \left (d^2-e^2 x^2\right )^{3/2}}{20 e}+\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {7 d^5 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{8 e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {669, 685, 655,
201, 223, 209} \begin {gather*} \frac {7 d^5 \text {ArcTan}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{8 e}+\frac {7 d^2 \left (d^2-e^2 x^2\right )^{3/2}}{12 e}+\frac {7 d (d-e x) \left (d^2-e^2 x^2\right )^{3/2}}{20 e}+\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {7}{8} d^3 x \sqrt {d^2-e^2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 209
Rule 223
Rule 655
Rule 669
Rule 685
Rubi steps
\begin {align*} \int \frac {\left (d^2-e^2 x^2\right )^{7/2}}{(d+e x)^3} \, dx &=\int (d-e x)^3 \sqrt {d^2-e^2 x^2} \, dx\\ &=\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {1}{5} (7 d) \int (d-e x)^2 \sqrt {d^2-e^2 x^2} \, dx\\ &=\frac {7 d (d-e x) \left (d^2-e^2 x^2\right )^{3/2}}{20 e}+\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {1}{4} \left (7 d^2\right ) \int (d-e x) \sqrt {d^2-e^2 x^2} \, dx\\ &=\frac {7 d^2 \left (d^2-e^2 x^2\right )^{3/2}}{12 e}+\frac {7 d (d-e x) \left (d^2-e^2 x^2\right )^{3/2}}{20 e}+\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {1}{4} \left (7 d^3\right ) \int \sqrt {d^2-e^2 x^2} \, dx\\ &=\frac {7}{8} d^3 x \sqrt {d^2-e^2 x^2}+\frac {7 d^2 \left (d^2-e^2 x^2\right )^{3/2}}{12 e}+\frac {7 d (d-e x) \left (d^2-e^2 x^2\right )^{3/2}}{20 e}+\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {1}{8} \left (7 d^5\right ) \int \frac {1}{\sqrt {d^2-e^2 x^2}} \, dx\\ &=\frac {7}{8} d^3 x \sqrt {d^2-e^2 x^2}+\frac {7 d^2 \left (d^2-e^2 x^2\right )^{3/2}}{12 e}+\frac {7 d (d-e x) \left (d^2-e^2 x^2\right )^{3/2}}{20 e}+\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {1}{8} \left (7 d^5\right ) \text {Subst}\left (\int \frac {1}{1+e^2 x^2} \, dx,x,\frac {x}{\sqrt {d^2-e^2 x^2}}\right )\\ &=\frac {7}{8} d^3 x \sqrt {d^2-e^2 x^2}+\frac {7 d^2 \left (d^2-e^2 x^2\right )^{3/2}}{12 e}+\frac {7 d (d-e x) \left (d^2-e^2 x^2\right )^{3/2}}{20 e}+\frac {(d-e x)^2 \left (d^2-e^2 x^2\right )^{3/2}}{5 e}+\frac {7 d^5 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{8 e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.26, size = 111, normalized size = 0.78 \begin {gather*} \frac {\sqrt {d^2-e^2 x^2} \left (136 d^4+15 d^3 e x-112 d^2 e^2 x^2+90 d e^3 x^3-24 e^4 x^4\right )}{120 e}-\frac {7 d^5 \log \left (-\sqrt {-e^2} x+\sqrt {d^2-e^2 x^2}\right )}{8 \sqrt {-e^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(351\) vs.
\(2(122)=244\).
time = 0.49, size = 352, normalized size = 2.48
method | result | size |
risch | \(\frac {\left (-24 e^{4} x^{4}+90 d \,e^{3} x^{3}-112 d^{2} e^{2} x^{2}+15 d^{3} e x +136 d^{4}\right ) \sqrt {-e^{2} x^{2}+d^{2}}}{120 e}+\frac {7 d^{5} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{8 \sqrt {e^{2}}}\) | \(94\) |
default | \(\frac {\frac {\left (-e^{2} \left (x +\frac {d}{e}\right )^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {9}{2}}}{3 d e \left (x +\frac {d}{e}\right )^{3}}+\frac {2 e \left (\frac {\left (-e^{2} \left (x +\frac {d}{e}\right )^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {9}{2}}}{5 d e \left (x +\frac {d}{e}\right )^{2}}+\frac {7 e \left (\frac {\left (-e^{2} \left (x +\frac {d}{e}\right )^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {7}{2}}}{7}+d e \left (-\frac {\left (-2 e^{2} \left (x +\frac {d}{e}\right )+2 d e \right ) \left (-e^{2} \left (x +\frac {d}{e}\right )^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {5}{2}}}{12 e^{2}}+\frac {5 d^{2} \left (-\frac {\left (-2 e^{2} \left (x +\frac {d}{e}\right )+2 d e \right ) \left (-e^{2} \left (x +\frac {d}{e}\right )^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {3}{2}}}{8 e^{2}}+\frac {3 d^{2} \left (-\frac {\left (-2 e^{2} \left (x +\frac {d}{e}\right )+2 d e \right ) \sqrt {-e^{2} \left (x +\frac {d}{e}\right )^{2}+2 d e \left (x +\frac {d}{e}\right )}}{4 e^{2}}+\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} \left (x +\frac {d}{e}\right )^{2}+2 d e \left (x +\frac {d}{e}\right )}}\right )}{2 \sqrt {e^{2}}}\right )}{4}\right )}{6}\right )\right )}{5 d}\right )}{d}}{e^{3}}\) | \(352\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.51, size = 154, normalized size = 1.08 \begin {gather*} -\frac {7}{8} i \, d^{5} \arcsin \left (\frac {x e}{d} + 2\right ) e^{\left (-1\right )} + \frac {7}{4} \, \sqrt {x^{2} e^{2} + 4 \, d x e + 3 \, d^{2}} d^{4} e^{\left (-1\right )} + \frac {7}{8} \, \sqrt {x^{2} e^{2} + 4 \, d x e + 3 \, d^{2}} d^{3} x + \frac {7}{12} \, {\left (-x^{2} e^{2} + d^{2}\right )}^{\frac {3}{2}} d^{2} e^{\left (-1\right )} + \frac {{\left (-x^{2} e^{2} + d^{2}\right )}^{\frac {7}{2}}}{5 \, {\left (x^{2} e^{3} + 2 \, d x e^{2} + d^{2} e\right )}} + \frac {7 \, {\left (-x^{2} e^{2} + d^{2}\right )}^{\frac {5}{2}} d}{20 \, {\left (x e^{2} + d e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.16, size = 88, normalized size = 0.62 \begin {gather*} -\frac {1}{120} \, {\left (210 \, d^{5} \arctan \left (-\frac {{\left (d - \sqrt {-x^{2} e^{2} + d^{2}}\right )} e^{\left (-1\right )}}{x}\right ) + {\left (24 \, x^{4} e^{4} - 90 \, d x^{3} e^{3} + 112 \, d^{2} x^{2} e^{2} - 15 \, d^{3} x e - 136 \, d^{4}\right )} \sqrt {-x^{2} e^{2} + d^{2}}\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 6.28, size = 439, normalized size = 3.09 \begin {gather*} d^{3} \left (\begin {cases} - \frac {i d^{2} \operatorname {acosh}{\left (\frac {e x}{d} \right )}}{2 e} - \frac {i d x}{2 \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} + \frac {i e^{2} x^{3}}{2 d \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} & \text {for}\: \left |{\frac {e^{2} x^{2}}{d^{2}}}\right | > 1 \\\frac {d^{2} \operatorname {asin}{\left (\frac {e x}{d} \right )}}{2 e} + \frac {d x \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}}{2} & \text {otherwise} \end {cases}\right ) - 3 d^{2} e \left (\begin {cases} \frac {x^{2} \sqrt {d^{2}}}{2} & \text {for}\: e^{2} = 0 \\- \frac {\left (d^{2} - e^{2} x^{2}\right )^{\frac {3}{2}}}{3 e^{2}} & \text {otherwise} \end {cases}\right ) + 3 d e^{2} \left (\begin {cases} - \frac {i d^{4} \operatorname {acosh}{\left (\frac {e x}{d} \right )}}{8 e^{3}} + \frac {i d^{3} x}{8 e^{2} \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} - \frac {3 i d x^{3}}{8 \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} + \frac {i e^{2} x^{5}}{4 d \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} & \text {for}\: \left |{\frac {e^{2} x^{2}}{d^{2}}}\right | > 1 \\\frac {d^{4} \operatorname {asin}{\left (\frac {e x}{d} \right )}}{8 e^{3}} - \frac {d^{3} x}{8 e^{2} \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} + \frac {3 d x^{3}}{8 \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} - \frac {e^{2} x^{5}}{4 d \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} & \text {otherwise} \end {cases}\right ) - e^{3} \left (\begin {cases} - \frac {2 d^{4} \sqrt {d^{2} - e^{2} x^{2}}}{15 e^{4}} - \frac {d^{2} x^{2} \sqrt {d^{2} - e^{2} x^{2}}}{15 e^{2}} + \frac {x^{4} \sqrt {d^{2} - e^{2} x^{2}}}{5} & \text {for}\: e \neq 0 \\\frac {x^{4} \sqrt {d^{2}}}{4} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.16, size = 74, normalized size = 0.52 \begin {gather*} \frac {7}{8} \, d^{5} \arcsin \left (\frac {x e}{d}\right ) e^{\left (-1\right )} \mathrm {sgn}\left (d\right ) + \frac {1}{120} \, {\left (136 \, d^{4} e^{\left (-1\right )} + {\left (15 \, d^{3} - 2 \, {\left (56 \, d^{2} e + 3 \, {\left (4 \, x e^{3} - 15 \, d e^{2}\right )} x\right )} x\right )} x\right )} \sqrt {-x^{2} e^{2} + d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d^2-e^2\,x^2\right )}^{7/2}}{{\left (d+e\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________